﻿using Mojito.Data.Enums;
using System.ComponentModel.DataAnnotations;

namespace Mojito.Data.Entities
{
    public class Request
    {
        [Key]
        [StringLength(50)]
        public string Id { get; set; }
        /// <summary>
        ///  标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        ///  状态
        ///  0: 正常
        ///  1: 弃用
        /// </summary>
        public short Status { get; set; }
        /// <summary>
        ///  描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        ///  请求地址
        /// </summary>
        public string RequestUrl { get; set; }
        /// <summary>
        ///  请求方法
        /// </summary>
        public RequestMethod Method { get; set; }
        /// <summary>
        ///  Header
        /// </summary>
        public string Header { get; set; }
        /// <summary>
        ///  Body
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        ///  所属文件夹
        /// </summary>
        public string FolderId { get; set; }
        /// <summary>
        ///  版本时间戳
        /// </summary>
        public long TimeStamp { get; set; }
    }
}
